import { Material } from './Material'
import { Vector3 } from '../Math/Vector3'
export class CameraDistanceMaterial extends Material {
    readonly type: string
    power: number
    minDistance: number
    maxDistance: number
    color: Vector3
    constructor(color: Vector3 = new Vector3(1,0,0),power: number = 1.0,minDistance: number = 10000.0,maxDistance: number = 100000.0) {
        console.log('minDistance',minDistance)
        super()
        this.type = 'CameraDistanceMaterial'
        this.color = color
        this.power = power
        this.minDistance = minDistance
        this.maxDistance = maxDistance
    }
    setPower(power: number) {
        this.power = power
    }
    setDistance(minDistance: number,maxDistance:number) {
        this.minDistance = minDistance
        this.maxDistance = maxDistance
    }
}